<template>
  <div class="content-item">
  <van-image
      width="80px"
      height="112px"
      fit="cover"
      :src="itemData.filmCover"/>
    <div class="content-v">
      <span class="span1">{{itemData.filmName}}</span>
      <span class="span2">{{formatDate()}}</span>
      <span class="span3">{{itemData.language}}</span>
      <span class="span2">{{ itemData.cinemaName+' '+itemData.screenName }}</span>
    </div>
  </div>
</template>

<script>
import {utils} from "@/utils/utils";

export default {
  name: 'ItemView',
  props: {
    itemData:undefined,
  },
  methods:{
    formatDate(){
      console.log(this.itemData)
      return utils.dateFormat(this.itemData.startTime,"yyyy.MM.DD hh:mm")
    },
  }
}
</script>

<style scoped>
.content-item{
  display: flex;
  flex-direction: row;
}
.content-v{
  display: flex;
  flex-direction: column;
  margin-left: 15px;
  align-items: flex-start;
}
.span1{
  font-size: 17px;
  font-family: PingFangSC, PingFang SC;
  font-weight: 500;
  color: #000000;
  line-height: 22px;
  -webkit-background-clip: text;
}
.span2{
  font-size: 13px;
  font-family: PingFangSC, PingFang SC;
  font-weight: 500;
  color: #333333;
  line-height: 18px;
  margin-top: 6px;
}
.span3{
  font-size: 12px;
  font-family: PingFangSC, PingFang SC;
  font-weight: 400;
  color: #666666;
  line-height: 18px;
  margin-top: 6px;
}
</style>
